package info.techgeek.labs.collection;

import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

public class HashMapTest {

	public static void main(String[] args) {
		
		Map<String, String> testMap = new HashMap<String, String>();
		testMap.put(null, null);
		testMap.put("test", null);
		testMap.put(null, "value");
		testMap.put(null, "value1");
		
		System.out.println(testMap.get(null));
		System.out.println(testMap.get("test"));
		
		Hashtable<String, String> hashtable =  new Hashtable<String, String>();
//		hashtable.put(null, null);
		hashtable.put("test", null);
		hashtable.put(null, "value");
		hashtable.put(null, "value1");
		
		System.out.println(hashtable.get(null));
		System.out.println(hashtable.get("test"));
	}
}
